import request from '@/sheep/request';

export default {
		//日周月报提交添加
		postDailyRecordAdd: (params) =>
		request({
			url: 'api/daily_record/add',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
        // 获取全部员工
        getStaffAllList: (params) =>
		request({
			url: 'api/daily_record/get_staff_all',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
        //日周月包详情
        getDetailByUidType: (params) =>
		request({
			url: 'api/daily_record/get_detail_by_uid_type',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
    // 获取日报列表
    getDailyRecordList: (params) =>
		request({
			url: 'api/daily_record/get_day_list',
			method: 'GET',
			params,
		}),
      // 获取周报列表
	getWeekList: (params) =>
		request({
			url: 'api/daily_record/get_week_list',
			method: 'GET',
			params,
		}),
      // 获取月报列表
	getMonthRecord: (params) =>
		request({
			url: 'api/daily_record/get_month_list',
			method: 'GET',
			params,
		}),

}